from pathlib import Path

filenames = ['day16/cats.txt','day16/dog.txt']

for filename in filenames:
    print(f"Reading the file:{filename}")

    path = Path(filename)
    try:
        contents = path.read_text()
    except FileNotFoundError:
        print(f"未找到文件：{filename}")
    else:
        print(contents)
